import java.util.*;

public class Craps {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		boolean win = false;
		boolean lose = false;
		int point;
		
		
		//System.out.print("Enter ROLL to roll.");
		//String rollStr = input.nextLine();
		if(true) {
			
		    //Random generator = new Random();
			Random diceRoller = new Random();
			int dice = diceRoller.nextInt(11)+2;
			System.out.println("You rolled a " + dice);
			
			if(dice == 7 || dice == 11) {
				win = true;
			}
			else if(dice == 3 || dice == 12 || dice == 2) {
				lose = true;
			}
			else {
				point = dice;
				System.out.println("Your point is " + point);
				while(true) {
					dice = diceRoller.nextInt(11)+2;
					System.out.println("You rolled a " + dice);
					if(dice == point) {
						win = true;
						break;
					}
					else if(dice == 7) {
						lose = true;
						break;
					}
				}
			}
			if(win) {
				System.out.println("You Won!");
			}else {
				System.out.println("You Lose!");
			}
		}
		

	}

}
